package com.xuxiao.controller;

import com.xuxiao.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xuxiao
 */
@Controller
public class TestController {

    @Autowired
    TestService testService;

    @RequestMapping(value = "test")
    public Map<String,Object> testWebMvc(){
        Map<String,Object> map = new HashMap<>(8);
        map.put("ok","ok");
        return map;
    }

}
